<?php

namespace api\modules\app\models;

use Yii;

/**
 * This is the model class for table "street_sync".
 *
 * @property string $street_code
 * @property string $sync_code
 * @property string $name
 */
class StreetSync extends \api\modules\app\models\BaseModel
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'street_sync';
    }

    /**
     * @return \yii\db\Connection the database connection used by this AR class.
     */
    public static function getDb()
    {
        return Yii::$app->get('test_3');
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['street_code', 'sync_code', 'name'], 'required'],
            [['street_code', 'sync_code', 'name'], 'string', 'max' => 50],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'street_code' => 'Street Code',
            'sync_code' => 'Sync Code',
            'name' => 'Name',
        ];
    }
}